home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / plain / contrib / manpage-example1.tex / manpage-example1_ct.html < prev    next >
LaTeX Document  |  1992-08-26  |  2.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
90% dexvert Hypertext Markup Language File (text/html) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file HTML document text default (weak)
99% file LaTeX document text default
98% file C source text default
97% file exported SGML document text default
96% file exported SGML document, ASCII text default
80% TrID HyperText Markup Language with DOCTYPE default
19% TrID HyperText Markup Language default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% gt2 HTML (Hyper Text Markup Language) Datei default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/html default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 6d 61 | 6e 70 61 67 65 2d 65 78 |ts of ma|npage-ex|
|000000b0| 61 6d 70 6c 65 31 3c 2f | 54 49 54 4c 45 3e 0a 0a |ample1</|TITLE>..|
|000000c0| 3c 4d 45 54 41 20 48 54 | 54 50 2d 45 51 55 49 56 |<META HT|TP-EQUIV|
|000000d0| 3d 22 43 6f 6e 74 65 6e | 74 2d 54 79 70 65 22 20 |="Conten|t-Type" |
|000000e0| 43 4f 4e 54 45 4e 54 3d | 22 74 65 78 74 2f 68 74 |CONTENT=|"text/ht|
|000000f0| 6d 6c 3b 20 63 68 61 72 | 73 65 74 3d 75 74 66 2d |ml; char|set=utf-|
|00000100| 38 22 3e 0a 3c 4d 45 54 | 41 20 4e 41 4d 45 3d 22 |8">.<MET|A NAME="|
|00000110| 76 69 65 77 70 6f 72 74 | 22 20 43 4f 4e 54 45 4e |viewport|" CONTEN|
|00000120| 54 3d 22 77 69 64 74 68 | 3d 64 65 76 69 63 65 2d |T="width|=device-|
|00000130| 77 69 64 74 68 2c 20 69 | 6e 69 74 69 61 6c 2d 73 |width, i|nitial-s|
|00000140| 63 61 6c 65 3d 31 2e 30 | 22 3e 0a 3c 4d 45 54 41 |cale=1.0|">.<META|
|00000150| 20 4e 41 4d 45 3d 22 47 | 65 6e 65 72 61 74 6f 72 | NAME="G|enerator|
|00000160| 22 20 43 4f 4e 54 45 4e | 54 3d 22 4c 61 54 65 58 |" CONTEN|T="LaTeX|
|00000170| 32 48 54 4d 4c 20 76 32 | 30 32 32 22 3e 0a 0a 3c |2HTML v2|022">..<|
|00000180| 4c 49 4e 4b 20 52 45 4c | 3d 22 53 54 59 4c 45 53 |LINK REL|="STYLES|
|00000190| 48 45 45 54 22 20 48 52 | 45 46 3d 22 6d 61 6e 70 |HEET" HR|EF="manp|
|000001a0| 61 67 65 2d 65 78 61 6d | 70 6c 65 31 2e 63 73 73 |age-exam|ple1.css|
|000001b0| 22 3e 0a 0a 3c 2f 48 45 | 41 44 3e 0a 20 0a 3c 42 |">..</HE|AD>. .<B|
|000001c0| 4f 44 59 20 62 67 63 6f | 6c 6f 72 3d 22 23 66 66 |ODY bgco|lor="#ff|
|000001d0| 66 66 66 66 22 20 74 65 | 78 74 3d 22 23 30 30 30 |ffff" te|xt="#000|
|000001e0| 30 30 30 22 20 6c 69 6e | 6b 3d 22 23 39 39 34 34 |000" lin|k="#9944|
|000001f0| 45 45 22 20 76 6c 69 6e | 6b 3d 22 23 30 30 30 30 |EE" vlin|k="#0000|
|00000200| 66 66 22 20 61 6c 69 6e | 6b 3d 22 23 30 30 66 66 |ff" alin|k="#00ff|
|00000210| 30 30 22 3e 0a 0a 3c 50 | 3e 0a 3c 42 52 3e 0a 3c |00">..<P|>.<BR>.<|
|00000220| 49 4d 47 0a 20 20 53 54 | 59 4c 45 3d 22 22 20 53 |IMG. ST|YLE="" S|
|00000230| 52 43 3d 22 69 6d 67 31 | 2e 70 6e 67 22 0a 20 41 |RC="img1|.png". A|
|00000240| 4c 54 3d 22 5c 62 65 67 | 69 6e 7b 6d 61 6e 70 61 |LT="\beg|in{manpa|
|00000250| 67 65 7d 7b 4f 49 4d 20 | 4c 69 62 72 61 72 79 7d |ge}{OIM |Library}|
|00000260| 7b 42 75 74 74 6f 6e 7d | 7b 44 72 61 66 74 7d 0a |{Button}|{Draft}.|
|00000270| 5c 70 61 72 0a 5c 73 75 | 62 74 69 74 6c 65 7b 4e |\par.\su|btitle{N|
|00000280| 61 6d 65 7d 0a 42 75 74 | 74 6f 6e 20 2d 2d 2d 20 |ame}.But|ton --- |
|00000290| 61 20 67 2e 2e 2e 0a 2e | 2e 2e 20 43 68 65 6e 20 |a g.....|.. Chen |
|000002a0| 61 74 20 74 68 65 20 4f | 66 66 69 63 65 20 66 6f |at the O|ffice fo|
|000002b0| 72 20 49 6e 66 6f 72 6d | 61 74 69 6f 6e 20 4d 61 |r Inform|ation Ma|
|000002c0| 6e 61 67 65 6d 65 6e 74 | 2c 20 55 49 55 43 2e 20 |nagement|, UIUC. |
|000002d0| 39 2d 31 2d 38 39 2e 0a | 5c 70 61 72 0a 5c 65 6e |9-1-89..|\par.\en|
|000002e0| 64 7b 6d 61 6e 70 61 67 | 65 7d 22 3e 0a 3c 42 52 |d{manpag|e}">.<BR|
|000002f0| 3e 0a 0a 3c 50 52 45 3e | 0a 20 20 20 20 2f 2a 20 |>..<PRE>|. /* |
|00000300| 45 58 41 4d 50 4c 45 20 | 31 20 2a 2f 0a 20 20 20 |EXAMPLE |1 */. |
|00000310| 20 23 69 6e 63 6c 75 64 | 65 20 26 6c 74 3b 74 69 | #includ|e &lt;ti|
|00000320| 6d 65 2e 68 26 67 74 3b | 0a 20 20 20 20 23 69 6e |me.h&gt;|. #in|
|00000330| 63 6c 75 64 65 20 22 6b | 65 79 2e 68 22 0a 20 20 |clude "k|ey.h". |
|00000340| 20 20 23 69 6e 63 6c 75 | 64 65 20 22 62 75 74 74 | #inclu|de "butt|
|00000350| 6f 6e 2e 68 22 0a 20 0a | 20 20 20 20 6d 61 69 6e |on.h". .| main|
|00000360| 28 29 20 7b 0a 20 20 20 | 20 20 20 20 20 4b 65 79 |() {. | Key|
|00000370| 20 6b 65 79 3b 0a 20 20 | 20 20 20 20 20 20 50 6f | key;. | Po|
|00000380| 69 6e 74 20 61 31 28 31 | 30 30 2c 20 31 30 30 29 |int a1(1|00, 100)|
|00000390| 2c 20 61 32 28 32 34 30 | 2c 20 31 33 30 29 3b 0a |, a2(240|, 130);.|
|000003a0| 20 20 20 20 20 20 20 20 | 42 75 74 74 6f 6e 20 61 | |Button a|
|000003b0| 28 61 31 2c 20 61 32 2c | 20 22 40 46 40 69 72 73 |(a1, a2,| "@F@irs|
|000003c0| 74 20 42 75 74 74 6f 6e | 22 2c 20 57 48 49 54 45 |t Button|", WHITE|
|000003d0| 2c 20 52 45 44 29 3b 0a | 20 20 20 20 20 20 20 20 |, RED);.| |
|000003e0| 42 75 74 74 6f 6e 20 62 | 28 34 30 30 2c 20 31 30 |Button b|(400, 10|
|000003f0| 30 2c 20 35 34 30 2c 20 | 31 32 30 2c 20 22 40 53 |0, 540, |120, "@S|
|00000400| 40 65 63 6f 6e 64 20 42 | 75 74 74 6f 6e 22 2c 20 |@econd B|utton", |
|00000410| 57 48 49 54 45 2c 20 42 | 4c 55 45 29 3b 0a 20 20 |WHITE, B|LUE);. |
|00000420| 20 20 20 20 20 20 50 6f | 69 6e 74 20 63 31 28 32 | Po|int c1(2|
|00000430| 35 30 2c 20 32 30 30 29 | 2c 20 63 32 28 34 30 30 |50, 200)|, c2(400|
|00000440| 2c 20 33 30 30 29 3b 0a | 20 20 20 20 20 20 20 20 |, 300);.| |
|00000450| 42 75 74 74 6f 6e 20 63 | 28 63 31 2c 20 63 32 2c |Button c|(c1, c2,|
|00000460| 20 22 40 54 40 68 69 72 | 64 20 42 75 74 74 6f 6e | "@T@hir|d Button|
|00000470| 5c 6e 68 61 73 5c 6e 54 | 68 72 65 65 20 4c 69 6e |\nhas\nT|hree Lin|
|00000480| 65 73 22 2c 20 57 48 49 | 54 45 2c 20 47 52 45 45 |es", WHI|TE, GREE|
|00000490| 4e 29 3b 0a 20 20 20 20 | 20 20 20 20 77 68 69 6c |N);. | whil|
|000004a0| 65 20 28 31 29 20 7b 0a | 20 20 20 20 20 20 20 20 |e (1) {.| |
|000004b0| 20 20 20 20 69 66 20 28 | 61 2e 70 72 65 73 73 65 | if (|a.presse|
|000004c0| 64 28 29 29 20 7b 20 2f | 2a 20 73 6c 65 65 70 28 |d()) { /|* sleep(|
|000004d0| 31 29 3b 20 20 61 2e 74 | 75 72 6e 4f 66 66 28 29 |1); a.t|urnOff()|
|000004e0| 3b 20 2a 2f 20 7d 0a 20 | 20 20 20 20 20 20 20 20 |; */ }. | |
|000004f0| 20 20 20 69 66 20 28 62 | 2e 70 72 65 73 73 65 64 | if (b|.pressed|
|00000500| 28 29 29 20 7b 20 73 6c | 65 65 70 28 31 29 3b 20 |()) { sl|eep(1); |
|00000510| 20 62 2e 74 75 72 6e 4f | 66 66 28 29 3b 20 7d 0a | b.turnO|ff(); }.|
|00000520| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 66 20 28 | | if (|
|00000530| 63 2e 70 72 65 73 73 65 | 64 28 29 29 20 7b 20 62 |c.presse|d()) { b|
|00000540| 72 65 61 6b 3b 20 7d 0a | 20 20 20 20 20 20 20 20 |reak; }.| |
|00000550| 7d 0a 20 20 20 20 20 20 | 20 20 61 2e 68 69 64 65 |}. | a.hide|
|00000560| 28 29 3b 20 62 2e 68 69 | 64 65 28 29 3b 20 6b 65 |(); b.hi|de(); ke|
|00000570| 79 2e 77 61 69 74 46 6f | 72 28 43 52 29 3b 0a 20 |y.waitFo|r(CR);. |
|00000580| 20 20 20 7d 0a 20 0a 20 | 20 20 20 2f 2a 20 45 58 | }. . | /* EX|
|00000590| 41 4d 50 4c 45 20 32 20 | 2a 2f 0a 20 20 20 20 23 |AMPLE 2 |*/. #|
|000005a0| 69 6e 63 6c 75 64 65 20 | 26 6c 74 3b 73 74 64 6c |include |&lt;stdl|
|000005b0| 69 62 2e 68 26 67 74 3b | 0a 20 20 20 20 23 69 6e |ib.h&gt;|. #in|
|000005c0| 63 6c 75 64 65 20 22 62 | 75 74 74 6f 6e 2e 68 22 |clude "b|utton.h"|
|000005d0| 0a 20 20 20 20 23 69 6e | 63 6c 75 64 65 20 22 62 |. #in|clude "b|
|000005e0| 6f 78 2e 68 22 0a 20 0a | 20 20 20 20 76 6f 69 64 |ox.h". .| void|
|000005f0| 20 66 75 6e 63 41 28 69 | 6e 74 29 20 7b 0a 20 20 | funcA(i|nt) {. |
|00000600| 20 20 20 20 20 20 42 6f | 78 20 69 6e 66 6f 42 6f | Bo|x infoBo|
|00000610| 78 28 30 2c 20 30 2c 20 | 4d 41 58 5f 58 2c 20 34 |x(0, 0, |MAX_X, 4|
|00000620| 30 2c 20 52 45 44 2c 20 | 43 59 41 4e 29 3b 0a 20 |0, RED, |CYAN);. |
|00000630| 20 20 20 20 20 20 20 69 | 6e 66 6f 42 6f 78 20 26 | i|nfoBox &|
|00000640| 6c 74 3b 26 6c 74 3b 20 | 22 41 20 62 75 74 74 6f |lt;&lt; |"A butto|
|00000650| 6e 20 69 73 20 70 72 65 | 73 73 65 64 22 3b 0a 20 |n is pre|ssed";. |
|00000660| 20 20 20 7d 0a 20 20 20 | 20 76 6f 69 64 20 66 75 | }. | void fu|
|00000670| 6e 63 42 28 69 6e 74 29 | 20 7b 0a 20 20 20 20 20 |ncB(int)| {. |
|00000680| 20 20 20 42 6f 78 20 69 | 6e 66 6f 42 6f 78 28 30 | Box i|nfoBox(0|
|00000690| 2c 20 30 2c 20 4d 41 58 | 5f 58 2c 20 34 30 2c 20 |, 0, MAX|_X, 40, |
|000006a0| 42 4c 55 45 2c 20 43 59 | 41 4e 29 3b 0a 20 20 20 |BLUE, CY|AN);. |
|000006b0| 20 20 20 20 20 69 6e 66 | 6f 42 6f 78 20 26 6c 74 | inf|oBox &lt|
|000006c0| 3b 26 6c 74 3b 20 22 42 | 20 62 75 74 74 6f 6e 20 |;&lt; "B| button |
|000006d0| 69 73 20 70 72 65 73 73 | 65 64 22 3b 0a 20 20 20 |is press|ed";. |
|000006e0| 20 7d 0a 20 20 20 20 76 | 6f 69 64 20 66 75 6e 63 | }. v|oid func|
|000006f0| 43 28 69 6e 74 29 20 7b | 20 65 78 69 74 28 30 29 |C(int) {| exit(0)|
|00000700| 3b 20 7d 0a 20 0a 20 20 | 20 20 6d 61 69 6e 28 29 |; }. . | main()|
|00000710| 20 7b 0a 20 20 20 20 20 | 20 20 20 42 75 74 74 6f | {. | Butto|
|00000720| 6e 20 61 28 31 30 30 2c | 20 31 30 30 2c 20 32 34 |n a(100,| 100, 24|
|00000730| 30 2c 20 31 33 30 2c 20 | 22 42 75 74 74 6f 6e 20 |0, 130, |"Button |
|00000740| 40 41 40 22 2c 20 57 48 | 49 54 45 2c 20 52 45 44 |@A@", WH|ITE, RED|
|00000750| 29 3b 0a 20 20 20 20 20 | 20 20 20 42 75 74 74 6f |);. | Butto|
|00000760| 6e 20 62 28 34 30 30 2c | 20 31 30 30 2c 20 35 34 |n b(400,| 100, 54|
|00000770| 30 2c 20 31 32 30 2c 20 | 22 42 75 74 74 6f 6e 20 |0, 120, |"Button |
|00000780| 40 42 40 22 2c 20 57 48 | 49 54 45 2c 20 42 4c 55 |@B@", WH|ITE, BLU|
|00000790| 45 29 3b 0a 20 20 20 20 | 20 20 20 20 42 75 74 74 |E);. | Butt|
|000007a0| 6f 6e 20 63 28 32 35 30 | 2c 20 32 30 30 2c 20 34 |on c(250|, 200, 4|
|000007b0| 30 30 2c 20 33 30 30 2c | 20 22 40 45 40 78 69 74 |00, 300,| "@E@xit|
|000007c0| 22 2c 20 57 48 49 54 45 | 2c 20 47 52 45 45 4e 29 |", WHITE|, GREEN)|
|000007d0| 3b 0a 20 20 20 20 20 20 | 20 20 61 2e 62 69 6e 64 |;. | a.bind|
|000007e0| 28 66 75 6e 63 41 29 3b | 20 62 2e 62 69 6e 64 28 |(funcA);| b.bind(|
|000007f0| 66 75 6e 63 42 29 3b 20 | 63 2e 62 69 6e 64 28 66 |funcB); |c.bind(f|
|00000800| 75 6e 63 43 29 3b 0a 20 | 20 20 20 20 20 20 20 45 |uncC);. | E|
|00000810| 76 65 6e 74 3a 3a 77 61 | 69 74 46 6f 72 45 76 65 |vent::wa|itForEve|
|00000820| 6e 74 73 28 29 3b 0a 20 | 20 20 20 7d 0a 3c 2f 50 |nts();. | }.</P|
|00000830| 52 45 3e 0a 0a 3c 50 3e | 0a 0a 3c 48 52 3e 0a 0a |RE>..<P>|..<HR>..|
|00000840| 3c 2f 42 4f 44 59 3e 0a | 3c 2f 48 54 4d 4c 3e 0a |</BODY>.|</HTML>.|
+--------+-------------------------+-------------------------+--------+--------+